package com.hmy.finance.common.oss;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;

/**
 * @author
 * @ClassName OssConfig
 * @Description 阿里云oss配置
 * @date 2019-02-20
 **/
@Data
@Component
@Validated
@ConfigurationProperties(prefix = "aliyun.oss")
public class OssProperties {
    @NotBlank
    private String endpoint;
    @NotBlank
    private String stsEndpoint;
    @NotBlank
    private String accessKeyId;
    @NotBlank
    private String accessKeySecret;
    @NotBlank
    private String bucketName;
    @NotBlank
    private String roleArn;
}
